package com.yutong.redis.fallback;

import com.yutong.redis.uuid.OpenUuid;
import org.springframework.stereotype.Component;

/**
 * 默认的ID服务降级策略-采用随机数+UUID
 *
 * @author hao
 */
@Component
public class DefaultIdFallback implements IdFallback {

    @Override
    public String nextId() {
        return String.valueOf(OpenUuid.uuid());
    }
}
